<%-- 
    Created on : 2019
    Author     : 黄忠
--%>

<%@page import="loginRegister.LoginBean"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link rel="stylesheet" href="../CSS/infor.css">
    </head>
    <body bgcolor="CCCFFF">
        <br><br>
        <form action="http://localhost:8080/UpdatePasswordServlet" method="post">
            <table border="2" cellspacing="0" cellpadding="0" bgcolor="CCCFFF" align="center">
            <%
                LoginBean nn=(LoginBean)session.getAttribute("login");
                if(nn==null){
                    response.sendRedirect("http://localhost:8080/main/bottom.jsp");
                }else{
            %>
                <tr>
                    <td height="30">原密码</td>
                    <td><input type="password" name="password1" required="required"></td>
                </tr>
                <tr>
                    <td height="30">新密码</td>
                    <td><input type="password" name="password2" required="required"></td>
                </tr>
                <tr>
                    <td height="30">重复密码</td>
                    <td><input type="password" name="password3" required="required"></td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value="确 定" size="12">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="reset" value="清 除" size="12">
                    </td>
                 </tr>
            <%

               }
            %>
            </table>
       </form>
    </body>
</html>
